package uy.com.csi.gestpro.model.mantenimiento;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the gp_eqpmnto database table.
 * 
 */
@Entity
@Table(name="gp_eqpmnto", schema="mantenimiento")
@NamedQuery(name="GpEqpmnto.findAll", query="SELECT g FROM GpEqpmnto g")
public class GpEqpmnto implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String dscrpcion;

	//bi-directional many-to-one association to GpGrpoEqpmnto
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="id_grpo_eqpmnto")
	private GpGrpoEqpmnto gpGrpoEqpmnto;

	public GpEqpmnto() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDscrpcion() {
		return this.dscrpcion;
	}

	public void setDscrpcion(String dscrpcion) {
		this.dscrpcion = dscrpcion;
	}

	public GpGrpoEqpmnto getGpGrpoEqpmnto() {
		return this.gpGrpoEqpmnto;
	}

	public void setGpGrpoEqpmnto(GpGrpoEqpmnto gpGrpoEqpmnto) {
		this.gpGrpoEqpmnto = gpGrpoEqpmnto;
	}

}